<%inherit file="base.html"/>

<%def name="Nav()">
					<nav role="navigation" id="nav-below" class="site-navigation paging-navigation">
						<h1 class="assistive-text">Post navigation</h1>
							%if DATA.article.previous()!=None:
							<div class="nav-previous"><a href="${DATA.article.previous().permalink}" title="${DATA.article.previous().title}"><span class="meta-nav">«</span></a></div>
							% endif
							%if DATA.article.next()!=None:
							<div class="nav-next"><a href="${DATA.article.next().permalink}" title="${DATA.article.next().title}"><span class="meta-nav">»</span></a></div>
							% endif
					</nav><!-- #nav-below -->
</%def>

<%block name="Content">

<%block name="Title">${DATA.article.title} | ${DATA.blog.title}</%block>

% if DATA.article!=None:
<div id="content" role="main">

		<article id="post-253006" class="post-253006 post type-post status-publish format-standard hentry category-1">
			<header class="entry-header">
			<div class="post-format-indicator">
				<a href="${DATA.article.permalink}" title="Permalink to ${DATA.article.title}" rel="bookmark">
					${DATA.article.title}</a>
			</div>
						<span class="comments-link"><a href="${DATA.article.permalink}#comment" title="${DATA.article.title}上的评论">${DATA.article.commenttimes}</a></span>
					<h1 class="entry-title">
						<a href="${DATA.article.permalink}" title="Permalink to ${DATA.article.title}" rel="bookmark">${DATA.article.title}</a></h1>
					<div class="entry-meta">
				<a href="${DATA.article.permalink}" title="${DATA.article.getLocalCreatedTime()}" rel="bookmark">
					<time class="entry-date" datetime="${DATA.article.getLocalCreatedTime()}" pubdate="">${DATA.article.getLocalCreatedTime()}</time>
				</a><span class="byline">
				<span class="sep"> | </span>
				By <span class="author vcard">
					<a class="url fn n" href="/about" title="View all posts by admin" rel="author">${DATA.blog.bloger}</a></span></span>
			</div><!-- .entry-meta -->
			</header><!-- .entry-header -->

			<div class="entry-content">
			${DATA.article.content}
			</div><!-- .entry-content -->
	
			<footer class="entry-meta">
				<span class="cat-links">
				<a href="/category/${DATA.article.category.name}" title="查看 ${DATA.article.category.name} 中的全部文章" rel="category">${DATA.article.category.name}</a>	
				%if len(DATA.article.getTags()):
							 and tagged 
							% for tag in DATA.article.getTags():
								<a href="/tag/${ tag.name}" rel="tag">${ tag.name}</a>, 
							% endfor
				%endif
				</span>			
			</footer><!-- #entry-meta -->
		</article>
			
				
		<div id="comments" class="comments-area">
			%if DATA.commentList.count()>0:
			<h2 class="comments-title"> thoughts on “<span>${DATA.article.title}</span>”</h2>
			<ol class="commentlist">
					%for comment in DATA.commentList:
					<li class="comment even thread-even depth-1" id="li-comment-1">
							<article id="comment-${comment.key().id()}" class="comment">
								<footer>
									<div class="comment-author vcard">
										<img alt="" src="${comment.getGravator()}" class="avatar avatar-40 photo avatar-default" height="40" width="40">	
											<cite class="fn">
												<a href="${comment.website}" rel="external nofollow" class="url">${comment.nickname}</a>
												</cite> 
												<span class="says">says:</span>
									</div><!-- .comment-author .vcard -->
										
									<div class="comment-meta commentmetadata">
											<time pubdate="" datetime="${comment.getLocalCreatedTime()}">
											${comment.getLocalCreatedTime()}</time>
									</div><!-- .comment-meta .commentmetadata -->
								</footer>
								<div class="comment-content">
									${comment.content}
								</div>
	
								<div class="reply">
								</div><!-- .reply -->
							</article><!-- #comment-## -->
						</li>
						%endfor
			</ol>
			%endif
	
	
			<div id="respond">
				<h3 id="reply-title">发表评论
					<small>
						<a rel="nofollow" id="cancel-comment-reply-link" href="/web/wordpress/?p=1#respond" style="display:none;">取消回复</a>
					</small>
				</h3>
				<form action="${DATA.article.permalink}/comment#comment" method="post" id="commentform">
					<p class="comment-notes">电子邮件地址不会被公开。 必填项已用 <span class="required">*</span> 标注</p>
					<p class="comment-form-author"><label for="author">昵称</label> <span class="required">*</span>
						${DATA.commentForm.comment_nickname.render()}
					</p>
					<p class="comment-form-email"><label for="email">电子邮件</label> <span class="required">*</span>
						${DATA.commentForm.comment_email.render()}
					</p>
					<p class="comment-form-url"><label for="url">站点</label>
						${DATA.commentForm.comment_website.render()}
					</p>
					<p class="comment-form-comment"><label for="comment">评论</label>
						${DATA.commentForm.comment_content.render()}
					</p>
					<p class="form-allowed-tags">您可以使用这些 <abbr title="HyperText Markup Language">HTML</abbr> 标签和属性： 
						<code>&lt;a href="" title=""&gt; &lt;abbr title=""&gt; &lt;acronym title=""&gt; &lt;b&gt; &lt;blockquote cite=""&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=""&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=""&gt; &lt;strike&gt; &lt;strong&gt; </code>
					</p>
					<p class="form-submit">
					<input name="submit" type="submit" id="submit" value="发表评论">
					${DATA.commentForm.comment_article_id.render()}
					</p>
				</form>
			</div><!-- #respond -->
	</div>
</div>
% endif
</%block>